package com.ohuang.test_koin.repository

interface LoginRepository {

    fun login(userName: String, password: String): Boolean
}

class LoginRepositoryImpl(val map: Map<String, String>) : LoginRepository {
    override fun login(userName: String, password: String): Boolean {
        if (map.containsKey(userName)) {
            var psd = map[userName]
            if (password==psd){
                return true
            }
        }
        return false
    }

}